package com.web44.springboot.config;

import com.web44.springboot.service.PropDevService;
import com.web44.springboot.service.impl.DevService;
import com.web44.springboot.service.impl.PropService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Title: App
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/29 9:54
 */
@Configuration
public class AppConfig {

    @Bean
    @Profile("dev")
    public PropDevService propDevService01() {
        return new DevService();
    }

    @Bean
    @Profile("prop")
    public PropDevService propDevService02() {
        return new PropService();
    }


}
